package com.sykj.utils;

import lombok.Data;

@Data
public class BusinessException extends  RuntimeException{

    private String message;
    private Integer code;

    public BusinessException(){
        super();
    }


    public BusinessException(ResultCode resultCode){
        this.message=resultCode.getMsg();
        this.code=resultCode.getCode();
    }


}
